#ifndef __DADC_H__
#define __DADC_H__

#define ADC1_DR_Address    ((u32)0x4001244C)

#define ADC_NB_SAMPLES    10
#define ADC_NB_CHANNELS   5 // = vbat + 3 touchscreen + temp

#define ADC_DMA_SIZE     ( ADC_NB_CHANNELS * ADC_NB_SAMPLES )

#define VDD_VOLTAGE_MV  2880 // Voltage (mV) of the STM32

#define BAT_FULL_VOLTAGE        4200
#define BAT_LOW_VOLTAGE         3750
#define BAT_EMPTY_VOLTAGE       3500
#define NO_BAT_VOLTAGE          3000

void ADC_Configuration( void );

#endif // __DADC_H__